AddRange Method (IEnumerable)

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Adds a collection of items to the end of BigList. The indices of all existing items are unchanged. The last item in the added collection becomes the last item in the BigList.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public void AddRange(
	IEnumerable<T> collection
)
Visual Basic (Declaration)
Public Sub AddRange ( _
	collection As IEnumerable(Of T) _
)
Visual C++
public:
void AddRange (
	IEnumerable<T>^ collection
)

Parameters

collection
IEnumerable<(Of <T>)>
The collection of items to add.

Remarks

This method takes time O(M + log N), where M is the number of items in the collection, and N is the size of the BigList.

Exceptions

ExceptionCondition
System..::ArgumentNullExceptioncollection is null.

See Also